using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Linq;
using ComponentFactory.Krypton.Toolkit;

namespace WordTool
{
    public partial class FrmWord : ComponentFactory.Krypton.Toolkit.KryptonForm
    {
        public WordModelContainer modelContext;
        public FrmWord()
        {
            InitializeComponent();
            
        }

        public void init()
        {
            wordBindingSource.DataSource = modelContext.Words.Where((w) => w.deleted == false);
        }

        private void sbtnSave_Click(object sender, EventArgs e)
        {
            modelContext.SaveChanges();
        }
    }
}